package xps.and.uudaijia.userclient.view.activity;

import android.content.SharedPreferences;
import android.view.View;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.TextView;

import com.jude.utils.JUtils;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import xps.and.uudaijia.userclient.R;
import xps.and.uudaijia.userclient.view.base.BaseActivity;

/**
 * Created by Administrator on 2017/8/7.
 */

public class JFSCActivity extends BaseActivity {
    @BindView(R.id.actionbar_iv_back)
    ImageView actionbarIvBack;
    @BindView(R.id.actionbar_tv_title)
    TextView actionbarTvTitle;
    @BindView(R.id.mail_open_html)
    WebView mailOpenHtml;

    @Override
    protected int getLayout() {
        return R.layout.activity_jfsc;
    }

    @Override
    protected void setData() {
        actionbarTvTitle.setText("积分商城");
        SharedPreferences sp = JUtils.getSharedPreference();
        mailOpenHtml.loadUrl("http://shop.xn--uu-df3cl18z.com/index.php?r=index/index&access-token=" + sp.getString("User_Access_token", ""));
        //mailOpenHtml.loadUrl("http://www.xn--uu-df3cl18z.com/");
    }

    @Override
    protected void init() {
        ButterKnife.bind(this);
    }


    @OnClick({R.id.actionbar_iv_back})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.actionbar_iv_back:
                finish();
                break;
        }
    }
}
